package br.com.ffm.pp.webservices;

public class TesteWSImplProxy implements br.com.ffm.pp.webservices.TesteWSImpl {
  private String _endpoint = null;
  private br.com.ffm.pp.webservices.TesteWSImpl testeWSImpl = null;
  
  public TesteWSImplProxy() {
    _initTesteWSImplProxy();
  }
  
  public TesteWSImplProxy(String endpoint) {
    _endpoint = endpoint;
    _initTesteWSImplProxy();
  }
  
  private void _initTesteWSImplProxy() {
    try {
      testeWSImpl = (new br.com.ffm.pp.webservices.TesteWSImplServiceLocator()).getTesteWSImplPort();
      if (testeWSImpl != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)testeWSImpl)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)testeWSImpl)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (testeWSImpl != null)
      ((javax.xml.rpc.Stub)testeWSImpl)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public br.com.ffm.pp.webservices.TesteWSImpl getTesteWSImpl() {
    if (testeWSImpl == null)
      _initTesteWSImplProxy();
    return testeWSImpl;
  }
  
  public boolean isCartaoValido(java.lang.String arg0) throws java.rmi.RemoteException{
    if (testeWSImpl == null)
      _initTesteWSImplProxy();
    return testeWSImpl.isCartaoValido(arg0);
  }
  
  public java.lang.String getNome() throws java.rmi.RemoteException{
    if (testeWSImpl == null)
      _initTesteWSImplProxy();
    return testeWSImpl.getNome();
  }
  
  
}